import request from '@/utils/request'

export function allOrderStat() {
  return request({
    url: '/seller/order/allOrderStat',
    method: 'get'
  })
}

export function list(data) {
	return request({
		url: '/seller/order/myOrder',
		method: 'get',
		data: data
	})
}

// 订单确认收款
export function confirm(id) {
	return request({
		url: '/seller/order/confirm/' + id,
		method: 'get'
	})
}

// 订单申诉
export function appeal(id,data) {
	return request({
		url: '/seller/order/appeal/' + id,
		method: 'get',
		data: data
	})
}

//出货单列表
export function orderList(data) {
	return request({
		url: '/seller/order/list',
		method: 'get',
		data: data
	})
}

//进货单列表
export function agentpayOrderList(data) {
	return request({
		url: '/seller/agentpayOrder/list',
		method: 'get',
		data: data
	})
}

//获取出货单详情
export function orderDetail(id) {
  return request({
    url: `/seller/order/detail/${id}`,
    method: 'get'
  })
}